/*
 * Author: kael http://weibo.com/loskael
 */
package los.kael.image;

import java.util.Comparator;

/**
 * 
 * @author kael http://weibo.com/loskael
 * @version $FileName: ComparatorImage.java $Date: 2011-12-6 下午1:54:41 -0400
 *          2011
 * @since 1.0
 * 
 */
public class ComparatorImage implements Comparator<Images> {
	public int compare(Images img1, Images img2) {
		if (img1.getWidth() == img2.getWidth()) {
			return 0;
		}
		if (img1.getWidth() > img2.getWidth()) {
			return -1;
		}
		return 1;
	}
}
